import { defineStore } from "pinia";
import type { UserInterface } from "@/stores/interface/index";

export const useUserStore = defineStore("asideStore", {
  state: (): UserInterface.State => ({
    username: "",
    nickname: "",
    token: "",
  }),
  actions: {
    setToken(token: string): void {
      this.token = token;
    },
  },
});
